<?php
class Aprobacion_model extends CI_Model {
    public function __construct() {
        parent::__construct();
        $this->load->database();
    }
    
    public function set_datos($datos) {
        $this->db->insert('aprobacion', $datos);
    }
    
    public function get_aprobacion_por_idnc($idnc) {
        $query = $this->db->query("SELECT *
                                    FROM
                                        aprobacion
                                    WHERE
                                        idnc = $idnc");
        return $query->row_array();
    }
}
?>
